# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>

_realname=configobj
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=5.0.6
pkgrel=2
pkgdesc="Simple but powerful config file reader and writer for Python"
arch=('any')
license=('BSD')
url="https://github.com/DiffSK/configobj"
depends=('python')
makedepends=('python-six')
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('a2f5650770e1c87fb335af19a9b7eb73fc05ccf22144eb68db7d00cd2bcb0902')

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  /usr/bin/python setup.py build
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  /usr/bin/python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
